import tushare as ts

class tushare_helper:
    def __init__(self):
        pass
    
    def get_pro(self):
        return ts.pro_api("0ba8feef618e5db7b1ebb65538fe51e4aef69fb3cbf709d44128f313")
    
    # https://tushare.pro/document/2?doc_id=138
    def get_df(ts_code='CU1811.SHF', start_date='20220101', end_date='20220513'):
        return ts.fut_daily(ts_code=ts_code, start_date=start_date, end_date=end_date)
    